<?php
//include 'Gsm.php';

class Call
{
	const PRICE_FOR_MINUTE = 0.3;
	private $caller;
	private $reciever;
	private $duration;
								//Type Hinting 
	public function __construct(Gsm $caller, Gsm $reciever, $duration)
	{
		echo "<p>Making Call ...</p>";
		$this->caller = $caller;
		$this->reciever = $reciever;
		$this->duration = $duration;
		
		$callResult = $caller->call($reciever, $duration);
		
		if($callResult == true)
		{
			$caller->setLastOutgoingCall($this);
			$reciever->setLastIncommingCall($this);
		}
	}
	
	public function getDuration()
	{
		return $this->duration;
	}
	
	public function getCaller()
	{
		return $this->$caller;
	}
	
	public function getReciever()
	{
		return $this->reciever;
	}
}


echo "newChange"; 

echo"lala";

echO"da ama ne " ;
